﻿namespace NC
{
    public static class Helper
    {
        public static string Truncate(string text, int length)
        {
            if (text.Length <= length)
            {
                return text + "....";
            }
            return text.Substring(0, length) + "...";
        }
    }
}